/**
 * 
 */
package de.cbf.cam.dsa.exchange.perspectives;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import de.cbf.cam.dsa.exchange.views.ChooseImporterView;

/**
 * @author Stefan Alter
 *
 */
public class ImportPerspective implements IPerspectiveFactory {

	public static final String ID = "de.cbf.cam.dsa.exchange.perspectives.ImportPerspective";

	/* (non-Javadoc)
	 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
	 */
	@Override
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		
		layout.addStandaloneView(ChooseImporterView.ID,false,IPageLayout.LEFT,0.25f,editorArea);
		IFolderLayout folder = layout.createFolder("importViews",IPageLayout.RIGHT,0.8f,editorArea);
		folder.addPlaceholder("de.cbf.cam.dsa.exchange.*.views.Im*");
//		folder.addView(ImportRMIView.ID);
		layout.setEditorAreaVisible(false);
	}

}
